Image Optimizer API (1.0.0)

Download OpenAPI specification:

/url

Optimize an image by url

Request Body schema: application/json
url
required
string
webhook
required
string
wait
boolean
Default: false
width
integer [ 0 .. 10000 ]
Default: null
height
integer [ 0 .. 10000 ]
Default: null
fit_crop_type
string
Default: null
Enum: "contain" "max" "fill" "stretch" "crop" "crop-top-left" "crop-top" "crop-top-right" "crop-left" "crop-center" "crop-right" "crop-bottom-left" "crop-bottom" "crop-bottom-right"
optimize
boolean
Default: false
greyscale
boolean
Default: false
sepia
boolean
Default: false
blur
integer [ 0 .. 100 ]
Default: 0
pixelate
integer [ 0 .. 100 ]
Default: 0
sharpen
integer [ 0 .. 100 ]
Default: 0
brightness
integer [ 0 .. 100 ]
Default: 0
contrast
integer [ 0 .. 100 ]
Default: 0
gamma
integer [ 0 .. 100 ]
Default: 0

Responses

Request samples

Content type
application/json
{
  • "url": "string",
  • "webhook": "string",
  • "wait": false,
  • "width": null,
  • "height": null,
  • "fit_crop_type": "contain",
  • "optimize": false,
  • "greyscale": false,
  • "sepia": false,
  • "blur": 0,
  • "pixelate": 0,
  • "sharpen": 0,
  • "brightness": 0,
  • "contrast": 0,
  • "gamma": 0
}

Response samples

Content type
application/json
{}